<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

/**
 * 微信门店日志
 */
class CreateWxStoreLog extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('wx_store_logs', function (Blueprint $table) {
            $table->increments('id')->comment('门店ID');
            $table->unsignedInteger('sid')->comment('门店ID');
            $table->string('remark', 200)->default('')->comment('日志内容');
            $table->timestamps();
            $table->index(['sid'],'index1');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('wx_store_logs');
    }
}
